package com.wisdytech.linkdcs.equipment.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wisdytech.linkdcs.account.model.TtEqEquipmentAid;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yanghu
 * @since 2017-09-16
 */
@TableName("tt_eq_equipment")
public class Equipment extends Model<Equipment> {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private String pkId;
    /**
     * 设备CODE
     */
    @TableField("EQUIP_CODE")
    private String equipCode;
    /**
     * 设备名称
     */
    @TableField("EQUIP_NAME")
    private String equipName;
    /**
     * 设备型号
     */
    @TableField("MODEL_CODE")
    private String modelCode;
    /**
     * 设备类目（关键设备0、一般设备1、特种设备2）
     */
    @TableField("EQUIP_CATEGORY")
    private String equipCategory;
    /**
     * 原值
     */
    @TableField("O_VALUE")
    private String oValue;
    /**
     * 转固情况
     */
    @TableField("TO_FIXED_ASSETS")
    private String toFixedAssets;
    /**
     * 终验收
     */
    @TableField("LAST_CHECK")
    private String lastCheck;
    /**
     * 成本中心
     */
    @TableField("COST_CENTER")
    private String costCenter;
    /**
     * 厂区ID
     */
    @TableField("FACTORY_ID")
    private String factoryId;
    /**
     * 产线ID
     */
    @TableField("LINE_ID")
    private String lineId;
    /**
     * 车间ID
     */
    @TableField("SHOP_ID")
    private String shopId;
    /**
     * 区域ID
     */
    @TableField("AREA_ID")
    private String areaId;
    /**
     * 投产日期
     */
    @TableField("USE_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date useDate;
    /**
     * 责任人
     */
    @TableField("RESPONSIBLE_PERSON")
    private String responsiblePerson;
    /**
     * 设备状态(使用0、闲置1、报废2)
     */
    @TableField("EQUIP_STATUS")
    private String equipStatus;
    /**
     * 使用部门
     */
    @TableField("DEPARTMENT")
    private String department;
    @TableField("DEL_FLAG")
    private String delFlag;
    @TableField("CREATE_USER")
    private String createUser;
    @TableField("CREATE_DATE")
    private Date createDate;
    @TableField("UPDATE_USER")
    private String updateUser;
    @TableField("UPDATE_DATE")
    private Date updateDate;
    @TableField("REMARK")
    private String remark;
    /**
     * 设备数据来源
     */
    @TableField("EQUIP_SOURCE")
    private String equipSource;
    
    /**
     * PLC协议
     */
    @TableField("PLC_PROTOCAL")
    private String plcProtocal;

	
    /**
     * 工序
     */
    @TableField("OPERATION_ID")
    private String operationId;
    /**
     * 工序
     */
    @TableField("EQUIP_CODE_NAME")
    private String equipCodeName;
    /**
     * 工序
     */
    @TableField("PROTOCAL_CODE")
    private String protocalCode;

    
    
    /**
     * 图片地址
     */
    @TableField("IMAGE")
    private String image;
    /**
     * 实时状态
     */
    @TableField("REAL_STATUS")
    private String realStatus;

    /**
     * 环境设备
     */
    @TableField("EQUIP_ENV_CODE")
    private String equipEnvCode;
    /**
     * IE产能
     */
    @TableField("DAY_WORKING_HOURS")
    private String dayWorkingHours;
    
    
    @TableField(exist=false)
    private String aidEquipCodes;
	/**
	 * 设备类型
	 */
	@TableField(exist=false)
	private String modelType;
	/**
	 * 供应商
	 */
	@TableField(exist=false)
	private String supplier;
	
	/**
	 * 通信接口
	 */
	@TableField(exist=false)
	private String ecRoute;
	
	
	/**
     * 设备备注
     */
    @TableField(exist=false)
    private String equipRemark;
    
    
    
    @TableField(exist=false)
    private String type;
    
    @TableField(exist=false)
	private String factoryName;
    @TableField(exist=false)
	private String lineName;
    @TableField(exist=false)
	private String shopName;
    @TableField(exist=false)
	private String areaName;
    @TableField(exist=false)
	private String operationName;
    @TableField(exist=false)
	private String responsiblePersonId;
    @TableField(exist=false)
	private  List<TtEqEquipmentAid> equipmentAids;
	@TableField(exist=false)
    private List<EquipProperty> propertys;
	//操作人
    @TableField(exist=false)
	private  String operatingPersonnels;
    @TableField(exist=false)
	private  List<EquipUsers> equipUsers;

    @TableField(exist=false)
    private  String areaCode;

    public String getDayWorkingHours() {
        return dayWorkingHours;
    }

    public void setDayWorkingHours(String dayWorkingHours) {
        this.dayWorkingHours = dayWorkingHours;
    }

    public String getEquipEnvCode() {
        return equipEnvCode;
    }

    public void setEquipEnvCode(String equipEnvCode) {
        this.equipEnvCode = equipEnvCode;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public String getEquipCodeName() {
        return equipCodeName;
    }

    public void setEquipCodeName(String equipCodeName) {
        this.equipCodeName = equipCodeName;
    }

    public String getProtocalCode() {
        return protocalCode;
    }

    public void setProtocalCode(String protocalCode) {
        this.protocalCode = protocalCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getOperatingPersonnels() {
		return operatingPersonnels;
	}

	public void setOperatingPersonnels(String operatingPersonnels) {
		this.operatingPersonnels = operatingPersonnels;
	}

	public List<EquipUsers> getEquipUsers() {
		return equipUsers;
	}

	public void setEquipUsers(List<EquipUsers> equipUsers) {
		this.equipUsers = equipUsers;
	}

	public List<TtEqEquipmentAid> getEquipmentAids() {
		return equipmentAids;
	}

	public void setEquipmentAids(List<TtEqEquipmentAid> equipmentAids) {
		this.equipmentAids = equipmentAids;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPkId() {
		return pkId;
	}

	public void setPkId(String pkId) {
		this.pkId = pkId;
	}

	public String getEquipCode() {
		return equipCode;
	}

	public void setEquipCode(String equipCode) {
		this.equipCode = equipCode;
	}

	public String getEquipName() {
		return equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}


	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	

    public String getModelCode() {
		return modelCode;
	}

	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}

	public String getModelType() {
		return modelType;
	}

	public void setModelType(String modelType) {
		this.modelType = modelType;
	}

	public String getSupplier() {
		return supplier;
	}

	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}

	public String getEcRoute() {
        return ecRoute;
    }

    public void setEcRoute(String ecRoute) {
        this.ecRoute = ecRoute;
    }

	@Override
	protected Serializable pkVal() {
		return this.pkId;
	}


    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }


    public String getEquipRemark() {
        return equipRemark;
    }

    public void setEquipRemark(String equipRemark) {
        this.equipRemark = equipRemark;
    }

	public String getFactoryName() {
		return factoryName;
	}

	public void setFactoryName(String factoryName) {
		this.factoryName = factoryName;
	}

	public String getLineName() {
		return lineName;
	}

	public void setLineName(String lineName) {
		this.lineName = lineName;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getEquipCategory() {
		return equipCategory;
	}

	public void setEquipCategory(String equipCategory) {
		this.equipCategory = equipCategory;
	}

	public String getoValue() {
		return oValue;
	}

	public void setoValue(String oValue) {
		this.oValue = oValue;
	}

	public String getToFixedAssets() {
		return toFixedAssets;
	}

	public void setToFixedAssets(String toFixedAssets) {
		this.toFixedAssets = toFixedAssets;
	}

	public String getLastCheck() {
		return lastCheck;
	}

	public void setLastCheck(String lastCheck) {
		this.lastCheck = lastCheck;
	}

	public String getCostCenter() {
		return costCenter;
	}

	public void setCostCenter(String costCenter) {
		this.costCenter = costCenter;
	}

	public String getFactoryId() {
		return factoryId;
	}

	public void setFactoryId(String factoryId) {
		this.factoryId = factoryId;
	}

	public String getLineId() {
		return lineId;
	}

	public void setLineId(String lineId) {
		this.lineId = lineId;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public Date getUseDate() {
		return useDate;
	}

	public void setUseDate(Date useDate) {
		this.useDate = useDate;
	}

	public String getResponsiblePerson() {
		return responsiblePerson;
	}

	public void setResponsiblePerson(String responsiblePerson) {
		this.responsiblePerson = responsiblePerson;
	}

	public String getEquipStatus() {
		return equipStatus;
	}

	public void setEquipStatus(String equipStatus) {
		this.equipStatus = equipStatus;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getEquipSource() {
		return equipSource;
	}

	public void setEquipSource(String equipSource) {
		this.equipSource = equipSource;
	}

	public String getAidEquipCodes() {
		return aidEquipCodes;
	}

	public void setAidEquipCodes(String aidEquipCodes) {
		this.aidEquipCodes = aidEquipCodes;
	}

	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	public String getResponsiblePersonId() {
		return responsiblePersonId;
	}

	public void setResponsiblePersonId(String responsiblePersonId) {
		this.responsiblePersonId = responsiblePersonId;
	}

    public String getPlcProtocal() {
        return plcProtocal;
    }

    public void setPlcProtocal(String plcProtocal) {
        this.plcProtocal = plcProtocal;
    }

    public List<EquipProperty> getPropertys() {
		return propertys;
	}

	public void setPropertys(List<EquipProperty> propertys) {
		this.propertys = propertys;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getRealStatus() {
		return realStatus;
	}

	public void setRealStatus(String realStatus) {
		this.realStatus = realStatus;
	}
    
    
    

}
